layui.use(function() {
    const {layer, carousel, laydate, jquery: $} = layui;
    var form = layui.form;
    // 提交事件
   $(function (){
       // demo-verify 添加点击事件
         $('#demo-verify').on('click', function(){
             // 获取#form 表单中 no 的值
                var no = $('#form').find('input[name="no"]').val();
                // 如果no 为空 提示
                if (no === '') {
                    layer.msg('请输入员工编号~');
                    return false;
                }
         });
   });





    $(function(){
        // 百度地图API功能
        var map = new BMapGL.Map('l-map');
        map.centerAndZoom(new BMapGL.Point(116.373777,39.974327), 15);
        map.enableScrollWheelZoom(true);
        // 创建点标记
        var marker1 = new BMapGL.Marker(new BMapGL.Point(116.373777,39.974327));
        // var marker2 = new BMapGL.Marker(new BMapGL.Point(116.404, 39.915));
        // var marker3 = new BMapGL.Marker(new BMapGL.Point(116.395, 39.935));
        // var marker4 = new BMapGL.Marker(new BMapGL.Point(116.415, 39.931));
        // 在地图上添加点标记
        map.addOverlay(marker1);
        // map.addOverlay(marker2);
        // map.addOverlay(marker3);
        // map.addOverlay(marker4);

    })






});